package com.mhkj.base.itemInfo.building.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mhkj.base.itemInfo.building.entity.Building;
import com.mics.core.system.base.repository.BaseRepository;

public interface BuildingDao extends BaseRepository<Building>{

	@Query("select t from Building t where t.phase.id = :phaseId")
	List<Building> findBuildByPhaseId(@Param("phaseId")Long phaseId);
}
